package cn.dckeji.gameBox.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lucas
 * @since 2018-08-20
 */
@TableName("game_loginlog")
public class Loginlog extends Model<Loginlog> {

    private static final long serialVersionUID = 1L;

    /**
     * 登录日志编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 登录用户名称
     */
    private String userName;
    /**
     * 登录时间
     */
    private Date loginTime;
    /**
     * 登录ip
     */
    private String ip;
    /**
     * 城市
     */
    private String city;
    /**
     * 省
     */
    private String province;
    /**
     * 类型：1登录 2开始游戏
     */
    private Integer type;
    /**
     * openId
     */
    private String openId;
    /**
     * 游戏编号
     */
    private Integer gameId;
    /**
     * 游戏名称
     */
    private String gameName;
    /**
     * 用户头像
     */
    private String userImg;

    /**
     * 性别
     */
    private String sex;

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "Loginlog{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", loginTime=" + loginTime +
                ", ip='" + ip + '\'' +
                ", city='" + city + '\'' +
                ", province='" + province + '\'' +
                ", type=" + type +
                ", openId='" + openId + '\'' +
                ", gameId=" + gameId +
                ", gameName='" + gameName + '\'' +
                ", userImg='" + userImg + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
